package com.mhy.exam.mapper;

import com.mhy.exam.pojo.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BrandMapper {
    Brand selectById(Integer id);

    List<Brand> selectAll();

    List<Brand> selectLike(String str);

    List<Brand> selectByCondition(Brand brand);

    List<Brand> selectByCondition(Map map);

    List<Brand> selectByCondition(@Param("status") Integer status,
                                  @Param("companyName") String companyName,
                                  @Param("brandName") String brandName);

    List<Brand> selectBybrand(String brandName);

    List<Brand> selectByStatus(Integer status);

    List<Brand> selectByDSql(Brand brand);

    List<Brand> selectByConditionSingle(Brand brand);

    int insert(Brand brand);

    int update(Brand brand);

    int delete(Integer id);

    int deleteByIds(@Param("ids")int[] ids);
}
